package chp10.home;

public class TestHero {

    public static void main(String[] args) {
        Hero hero = new Hero();
        hero.name = "李晓霞";
        hero.hp = 300;
        hero.show();

        Monster monster = new Monster();
        monster.name = "小龟";
        monster.hp = 200;
        monster.type = "潜水类";
        monster.show();

        Weapon weapon = new Weapon();
        weapon.name ="死神镰刀";
        weapon.attack = 12;
        weapon.show();
    }
}
